import APIClient from './http';


 export function getTrainReport(params){
    return APIClient.get(`/ai-training/practice-report?practice_id=${params}`)
 }

export function getTrainPracticeMain(params){
    return APIClient.get(`/ai-training/practice-main?practice_id=${params}`)
}

 export function getTrainChat(params){
    return APIClient.get(`/ai-training/chat-record?practice_id=${params}`)
 }

 export function getTrainRanking(params){
    return APIClient.get(`/ai-training/rank-list?training_id=${params}`)
 }
 export function getTraiList(params){
// first_category_id,second_category_id,training_result
    return APIClient.get(`/ai-training/record`,{params})
 }
export function getPracticeTrainingInfo(params){
    return APIClient.get(`/ai-training/practice-training-info?practice_id=${params}`)
}
// 设置ai
export function getTrainConfig(tid=14,params){
    return APIClient.get(`/ai-training/config?ai_character_id=${params}&training_id=${tid}`,)
}
 export function getAiTrainList(params){
    return APIClient.get(`/ai-training/list`)
 }


 export function getOptions(){
   return APIClient.get('/ai-training/record-select-options')
 }

  export function getTrainDetail(params){
   return APIClient.get('/ai-training/detail',{params})
 }


export function getTrainRecord(params){
    return APIClient.get(`/ai-training/chat-words-record`,{params})
}
 export function getStatusSetting(){
    return APIClient.get(`/ai-training/rank-participate-status`)
 }

 export function setStatusSetting(params){
    return APIClient.post(`/ai-training/change-rank-participate`)
 }

//  /ai-training/send-alert-msg


export function sendMsg(body){
    return APIClient.post(`/ai-training/send-alert-msg`,body)
 }
